//
//  WBUserManager.h
//  WeatherBar
//
//  Created by Bert on 2024/6/7.
//

#import <Foundation/Foundation.h>
#import "WBUserModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface WBUserManager : NSObject
// 存放用户的信息
@property (nonatomic ,strong) WBUserModel *userModel;
//是否登录过 这个值的修改会触发重新登录和tabbar的重新创建，小心操作
@property (nonatomic ,assign) BOOL hasLogined;
////是否开启了定位了
//@property (nonatomic ,assign) BOOL hasOpenLocation;
@property (nonatomic ,copy) NSString *token;
//数字藏品类目
@property (nonatomic ,copy) NSArray *industryCategory;

+ (instancetype)shareManager;
///// 获取App当前的版本号
//+ (void)getAppCurrentVersion;
/// 获取临时token
+ (NSString *)getTempToken;
/// 更新本地账户信息
- (void)updateUserInfo:(WBUserModel *)userModel;
/// 用户上线
- (void)userLogin:(WBUserModel *)userModel;
/// 用户下线
- (void)userLogout;
/// 用户登录成功
- (void)loginSuccess;
/// 启动APP，建立用户控制器
- (void)buildVC;
/// 获取与用户关联的数据库表名
//+ (NSString *)dbNameWithDateString:(NSString *)dateString;
/// 获取与用户关联的数据库路径
+ (NSString *)dbPath;

- (void)setHasOpenLocation:(BOOL)hasOpenLocation;
- (BOOL)hasOpenLocation;
@end

NS_ASSUME_NONNULL_END
